username = input('请输入用户名：')
password = input('请输入密码：')

if username == 'tom' and password == '123456':
    print('登录成功！')
else:
    print('用户名和密码错误！')